package com.example.human_resource_management.service;

import com.example.human_resource_management.entry.dto.PositionDepartmentDto;
import com.example.human_resource_management.entry.po.Position;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author Lenovo
* @description 针对表【position(职位表)】的数据库操作Service
* @createDate 2025-06-09 08:49:10
*/
public interface PositionService extends IService<Position> {
    // 联查职位和部门信息
    List<PositionDepartmentDto> selectPositionDepartmentList();

    // 按ID联查职位和部门信息
    PositionDepartmentDto selectPositionDepartmentById(Long posId);

    // 新增职位
    boolean addPosition(Position position);

    // 修改职位
    boolean updatePosition(Position position);

    // 删除职位
    boolean deletePosition(Long posId);
}
